import 'dart:convert';

import 'package:flutter2/generated/json/base/json_field.dart';
import 'package:flutter2/generated/json/pay_channel_entity.g.dart';
import 'package:flutter2/ui/sheet.dart';

export 'package:flutter2/generated/json/pay_channel_entity.g.dart';

@JsonSerializable()
class PayChannelEntity extends SheetItem {
  @JSONField(name: "razorabsorb")
  String name = '';
  @JSONField(name: "whenclever")
  String channel = '';

  PayChannelEntity();

  factory PayChannelEntity.fromJson(Map<String, dynamic> json) => $PayChannelEntityFromJson(json);

  Map<String, dynamic> toJson() => $PayChannelEntityToJson(this);

  @override
  String toString() {
    return jsonEncode(this);
  }

  @override
  String getName() {
    return name;
  }
}
